/*
 * MyQueue.h
 *
 *  Created on: 2012-2-21
 *      Author: joshua
 */
typedef int elemType;
#ifndef MYQUEUE_H_
#define MYQUEUE_H_
#include <stdio.h>
#include <stdlib.h>
struct sNode {
	elemType data;
	struct sNode *next;
};

struct MyQueue {
	int length;
	struct sNode *front;
	struct sNode *rear;
};

void initQueue(struct MyQueue *hq);
void enQueue(struct MyQueue *hq, elemType x);
elemType outQueue(struct MyQueue *hq);

#endif
